/*
** my_put_nbr.c for my_put_nbr in /home/nadali_t//afs/rendu/piscine/Jour_03
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Wed Oct  3 16:27:57 2012 thomas nadalie
** Last update Sun Nov 25 18:20:16 2012 thomas nadalie
*/

#include	"my.h"

void		my_put_nbr(int nb)
{
  if (nb < 0)
    {
      my_putchar('-');
      nb = nb * -1;
    }
  if (nb == 2147483647)
    my_putstr("2147483648");
  if (nb > 9)
    my_put_nbr(nb / 10);
  my_putchar((nb % 10) + 48);
}
